dhcpv4: update ubus DHCPv4 events/methods
authorDavid Härdeman <[email protected]>
Mon, 10 Nov 2025 22:36:27 +0000 (23:36 +0100)
committerÁlvaro Fernández Rojas <[email protected]>
Fri, 14 Nov 2025 16:25:31 +0000 (17:25 +0100)
commit366bd81804a6891e98d55cf77f836c1cd3bfd595
treed505bb95d1b5a91a69bf7599814202fbb1c6fc56
parent942df078b670ae2ed33dff3f77ac997fa4ca377f
dhcpv4: update ubus DHCPv4 events/methods

This is based on the assumption that we don't really have any consumers
of ubus DHCPv4 events (yet).

With that in mind, rename and simplify the event function (yes, we
should add a sibling function for DHCPv6 leases later).

Also, take the chance to improve some naming, and introduce additional
attributes to the ubus event/method (the interface name and the
DUID/IAID, if known).

Signed-off-by: David Härdeman <[email protected]>
Link: https://github.com/openwrt/odhcpd/pull/306
Signed-off-by: Álvaro Fernández Rojas <[email protected]>
src/dhcpv4.c
src/odhcpd.h
src/ubus.c